Skip to content

Add "HF_ENDPOINT" support for "download" #3060

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from

Conversation

simpx
Copy link

@simpx simpx commented May 8, 2025

No description provided.

@hanouticelina
Copy link
Contributor

Hi @simpx,
HF_ENDPOINT env variable is already used by default to construct the API URLs when interacting with the Hugging Face Hub. I'm closing this PR as there's no need to manually read and pass this environment variable to the function.

If you want to customize the base URL used to interact with the Hugging Face Hub, You can set the HF_ENDPOINT environment variable before downloading:

export HF_ENDPOINT="your-custom-endpoint"
huggingface-cli download [repo_id] [filenames] 

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants